#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stdio.h>

void byteorder(void)
{
    union ByteUnion
    {
        short value;
        char union_byte[sizeof(short)];
    };
    ByteUnion test;
    test.value = 0x0102;
    if((test.union_byte[0]==1)&&(test.union_byte[1]==2))
    {
        std::cout<<"Big Endian"<<std::endl;
    }else if((test.union_byte[0]==2)&&(test.union_byte[1]==1))
    {
        std::cout<<"Litte Endian"<<std::endl;
    }else{
        std::cout<<"Unknow "<<std::endl;
    }
}

int main(void)
{
    char* message = NULL;
    size_t len = 0;
    ssize_t readLine;
    while((readLine = getline(&message,&len,stdin))!=-1)
    {
        if(strcmp("Quit\n",message)==0)
        {
            printf("Match!\n");
            break;
        }
        printf("%s",message);
    }
    return 0;
}
